let apiURL = "https://scan-eu.cess.network/";

if (apiURL.slice(-1) == "/") {
    apiURL = apiURL.slice(0, apiURL.length - 1);
}
console.log(apiURL);